package com.sniff.atp.utils;

import java.util.HashMap;
import java.util.Map;

public class ToolsUtil {

    private ToolsUtil(){}

    private static final Map<String, Object> map = new HashMap<>();


    /**
     * 等待
     * @param time 单位毫秒
     */
    public static void sleep(long time) {
        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }



    public static void stringBuild(String name, Object value){
        map.put(name, value);
    }

    public static Object getStringBuild(String name){

        Object o = map.get(name);
        return  o.toString();
    }

}
